﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;

public partial class AdminCP_Admin : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        InfoDangNhap dn = (InfoDangNhap)Session["login1"];
        if (dn!=null)
        {
            UserControl uc = (UserControl)Page.FindControl("login");
            uc.Visible = false;
            
            lblLogin.Text = "Xin chao "+dn.TenDangNhap;

        }
    }
}
